<h1>Category</h1>
<p align="right"><a href="<?php echo site_url('product/category/create_category');?>">Add Category</a></p>
<!--<div id="infoMessage"><?php echo $message;?></div>-->

<table class="table table-striped table-bordered" width="100%" id="example">
	<thead>
    <tr>
		<th>Category Name</th>
        <th>Decsription</th>
	    <th>Action</th>
	</tr>
    </thead>
	<?php foreach ($users as $user):?>
		<tr>
			<td><?php echo $user->name;?></td>
            <td><?php echo $user->description;?></td>
			<td><?php echo anchor("product/category/edit_category/".$user->id, 'Edit') ;?>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
           <a href="<?php echo site_url('product/category/delete_category/').'/'.$user->id;?>" onclick="return confirm('Are you sure you want to DELETE this Category ??')">Delete</a>
          </td>
		</tr>
	<?php endforeach;?>
</table>

<!--<p><a href="<?php echo site_url('auth/create_user');?>">Create a new user</a> | <a href="<?php echo site_url('auth/create_group');?>">Create a new group</a>
<a href="<?php echo site_url('auth/logout');?>">Logout</a>
</p>-->
